<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>display: inline-block</title>
    <style>
        .inline-block {
            display: inline-block;
            width: 100px;
            height: 30px;
            background-color: lightcoral;
            margin: 5px;
        }
    </style>
</head>
<body>

<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>
<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>
<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>
<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>

<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>
<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>

<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>
<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>

<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>
<div class="inline-block">内联块1</div>
<div class="inline-block">内联块2</div>



</body>
</html>